﻿Public Class MessageBoxDialogTemplate

    Public Sub New(text As String, title As String)

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        MessageBoxText.Text = text
        Me.Title = title
    End Sub

    Private Sub OKButton_Click(sender As Object, e As System.Windows.RoutedEventArgs) Handles OKButton.Click
        DialogResult = True
        Close()
    End Sub
End Class